// 封装轮播数据业务相关逻辑
import { ref } from 'vue'
import { getBannerAPI } from '@/apis/home'
export function useBanner () {
    const bannerList = ref([])
    // 获取分类页轮播数据
    const getBanner = async () => {
        const res = await getBannerAPI({
            distributionSite: '2'
        })
        bannerList.value = res.result
        
    }
    getBanner()

    return {
        bannerList
    }
}